home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
copytape.lha
/
copytape
/
copytape.5.man
< prev
next >
Wrap
Text File
|
1990-01-09
|
2KB
|
67 lines
COPYTAPE(5)
NAME
copytape - copytape intermediate data file format
DESCRIPTION
_c_o_p_y_t_a_p_e duplicates magtapes on single-tape systems by mak-
ing an intermediate copy of the tape in a disk file. This
disk file has a special format that preserves the block
boundaries and tape marks of the original physical tape.
Each block is preceded by a header identifying what sort of
block it is. In the case of data blocks, the length of the
data is also given. Each header is on a separate text line,
followed by a newline character.
CPTP:BLK _n_n_n_n_n_n
_d_a_t_a\n
A data block is identified by the keyword _B_L_K. The
length of the block is given in a six-character numeric
field. The field is zero-padded on the left if less than
six characters are needed. The header is followed by a
newline character. The original data follows. The data
may have any characters in it, since _c_o_p_y_t_a_p_e uses a
read(2) to extract it. The data is followed by a new-
line, to make the file easy to view with an editor.
CPTP:MRK
A tape mark was encountered in the original tape.
CPTP:EOT
When two consecutive tape marks are encountered, _c_o_p_y_t_a_p_e
treats the second as a logical end-of-tape. On output,
both MRK and EOT generate a physical tape mark. _c_o_p_y_t_a_p_e
stops processing after copying an EOT.
SEE ALSO
mtio(4)
BUGS
Some weird tapes may not use two consecutive tape marks as
logical end-of-tape.
1